All Packages Class Hierarchy This Package Previous Next Index
Class javax.media.j3d.PhysicalEnvironment
java.lang.Object
|
+----javax.media.j3d.PhysicalEnvironment
- public class PhysicalEnvironment
- extends Object
-
PhysicalEnvironment()
- Constructs and initializes a new physical environment object.
-
PhysicalEnvironment(int)
- Constructs and initializes a new physical environment object.
-
getAudioDevice()
- Gets the audioDevice for this PhysicalEnvironment
-
getCoexistenceCenterInPworldPolicy()
- Returns the current coexistence center in physical world policy.
-
getCoexistenceToTrackerBase(Transform3D)
- Retrieves the coexistence coordinate system to tracker-base
coordinate system transform and copies it into the specified
Transform3D object.
-
getDominantHandIndex()
- Gets the sensor index of the dominant hand
-
getHeadIndex()
- Gets the sensor index of the head
-
getLeftHandIndex()
- Gets the sensor index of the left hand
-
getNonDominantHandIndex()
- Gets the sensor index of the non-dominant hand
-
getRightHandIndex()
- Gets the sensor index of the right hand
-
getSensor(int)
- Gets the sensor specified by the index
-
getSensorCount()
- Get the current sensor count.
-
getTrackingAvailable()
- Returns a status flag indicating whether or not tracking
is available.
-
setAudioDevice(AudioDevice)
-
Set the audio device
-
setCoexistenceCenterInPworldPolicy(int)
- Sets the coexistence center in physical world policy.
-
setCoexistenceToTrackerBase(Transform3D)
- Sets the coexistence coordinate system to tracker-base coordinate
system transform.
-
setDominantHandIndex(int)
- Sets the index of the dominant hand to the specified sensor index
-
setHeadIndex(int)
- Sets the index of the head to the specified sensor index
-
setLeftHandIndex(int)
- Sets the index of the left hand to the specified sensor index
-
setNonDominantHandIndex(int)
- Sets the index of the non-dominant hand to the specified sensor index
-
setRightHandIndex(int)
- Sets the index of the right hand to the specified sensor index
-
setSensor(int, Sensor)
- Set the sensor specified by the index to sensor provided
-
setSensorCount(int)
- Set the number of sensor objects per PhysicalEnvironmnet.
PhysicalEnvironment
public PhysicalEnvironment()
- Constructs and initializes a new physical environment object.
It creates a default (3) sensors.
PhysicalEnvironment
public PhysicalEnvironment(int sensorCount)
- Constructs and initializes a new physical environment object.
- Parameters:
- sensorCount - the number of sensors to create.
setAudioDevice
public void setAudioDevice(AudioDevice device)
- Set the audio device
- Parameters:
- device - audio device object to be associated with this
PhysicalEnvironment
getAudioDevice
public AudioDevice getAudioDevice()
- Gets the audioDevice for this PhysicalEnvironment
- Returns:
- audio device object associated with this PhysicalEnvironment
setHeadIndex
public void setHeadIndex(int index)
- Sets the index of the head to the specified sensor index
- Parameters:
- index - the new sensor index of the head
getHeadIndex
public int getHeadIndex()
- Gets the sensor index of the head
- Returns:
- the sensor index of the head
setRightHandIndex
public void setRightHandIndex(int index)
- Sets the index of the right hand to the specified sensor index
- Parameters:
- index - the new sensor index of the right hand
getRightHandIndex
public int getRightHandIndex()
- Gets the sensor index of the right hand
- Returns:
- the sensor index of the right hand
setLeftHandIndex
public void setLeftHandIndex(int index)
- Sets the index of the left hand to the specified sensor index
- Parameters:
- index - the new sensor index of the left hand
getLeftHandIndex
public int getLeftHandIndex()
- Gets the sensor index of the left hand
- Returns:
- the sensor index of the left hand
setDominantHandIndex
public void setDominantHandIndex(int index)
- Sets the index of the dominant hand to the specified sensor index
- Parameters:
- index - the new sensor index of the dominant hand
getDominantHandIndex
public int getDominantHandIndex()
- Gets the sensor index of the dominant hand
- Returns:
- the sensor index of the dominant hand
setNonDominantHandIndex
public void setNonDominantHandIndex(int index)
- Sets the index of the non-dominant hand to the specified sensor index
- Parameters:
- index - the new sensor index of the non dominant hand
getNonDominantHandIndex
public int getNonDominantHandIndex()
- Gets the sensor index of the non-dominant hand
- Returns:
- the sensor index of the non dominant hand
setSensor
public void setSensor(int index,
Sensor sensor)
- Set the sensor specified by the index to sensor provided
- Parameters:
- index - the sensor's index
- sensor - the new sensor
getSensor
public Sensor getSensor(int index)
- Gets the sensor specified by the index
- Parameters:
- index - the sensor's index
setCoexistenceToTrackerBase
public void setCoexistenceToTrackerBase(Transform3D t)
- Sets the coexistence coordinate system to tracker-base coordinate
system transform. If head tracking is enabled, this transform
is a calibration constant. If head tracking is not enabled,
this transform is not used.
This is used in both SCREEN_VIEW and HMD_VIEW modes.
- Parameters:
- t - the new transform
getCoexistenceToTrackerBase
public void getCoexistenceToTrackerBase(Transform3D t)
- Retrieves the coexistence coordinate system to tracker-base
coordinate system transform and copies it into the specified
Transform3D object.
- Parameters:
- t - the object that will receive the transform
getTrackingAvailable
public boolean getTrackingAvailable()
- Returns a status flag indicating whether or not tracking
is available.
- Returns:
- a flag telling whether tracking is available
setCoexistenceCenterInPworldPolicy
public void setCoexistenceCenterInPworldPolicy(int policy)
- Sets the coexistence center in physical world policy.
This setting determines how Java 3D places the
user's eye point as a function of head position during the
calibration process. The variable can contain one of:
View.NOMINAL_SCREEN, View.NOMINAL_HEAD, or View.NOMINAL_FEET.
NOTE that a value of View.NOMINAL_SCREEN_SCALED is not allowed
for this physical world policy.
- Parameters:
- policy - the new policy
getCoexistenceCenterInPworldPolicy
public int getCoexistenceCenterInPworldPolicy()
- Returns the current coexistence center in physical world policy.
- Returns:
- one of: View.NOMINAL_SCREEN, View.NOMINAL_HEAD, or
View.NOMINAL_FEET
getSensorCount
public int getSensorCount()
- Get the current sensor count.
- Returns:
- the number of sensor objects per PhysicalEnvironment object
setSensorCount
public void setSensorCount(int count)
- Set the number of sensor objects per PhysicalEnvironmnet. This is a
calibration parameter that should be set before initializing Java 3D.
- Parameters:
- count - the new sensor count
All Packages Class Hierarchy This Package Previous Next Index